﻿using System;
using System.Collections.Generic;
using System.Text;
using T.FAS.Runtime.SPI;

namespace T.FAS.Runtime.SGSPI
{
    public interface IExportTaskService
    {
        /// <summary>
        /// 导出
        /// </summary>
        /// <param name="exportParam"></param>
        /// <param name="parameters"></param>
        /// <param name="exportDefs"></param>
        ExportTask ExportData(ExportParam exportParam, List<ExportParameter> parameters, List<ExportDef> exportDefs);
        /// <summary>
        /// 导出
        /// </summary>
        /// <param name="dataQueryID"></param>
        /// <param name="parameters"></param>
        /// <param name="exportDefs"></param>
        /// <param name="exportType"></param>
        ExportTask ExportDataQuery(string dataQueryID, List<ExportParameter> parameters, List<ExportDef> exportDefs, int exportType, int type);
        /// <summary>
        /// 查询导出任务列表
        /// </summary>
        /// <param name="dataQueryID"></param>
        /// <param name="filter"></param>
        /// <returns></returns>
        Dictionary<string, object> GetExportTaskList(string dataQueryID, Dictionary<string, string> filter);
        /// <summary>
        /// 删除任务
        /// </summary>
        /// <param name="taskID"></param>
        /// <returns></returns>
        Dictionary<string, string> DeleteExportTask(string taskID);
        /// <summary>
        /// 清空任务
        /// </summary>
        /// <returns></returns>
        Dictionary<string, string> ClearExportTask(string metaDataID);
    }
}
